package com.example.eos.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.example.eos.tool.GlobalParam;

import java.util.Date;

/**
 * 用户关注信息
 */
public class UserFollow {
    private String userfollowid;

    private String userid;

    private String followid;

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date followtime;

    public UserFollow(){}

    public UserFollow(String userid, String followid){
        this.userfollowid = GlobalParam.getUUID();
        this.userid = userid;
        this.followid = followid;
        this.followtime = GlobalParam.getTime();
    }

    @Override
    public String toString() {
        return "UserFollow{" +
                "userfollowid='" + userfollowid + '\'' +
                ", userid='" + userid + '\'' +
                ", followid='" + followid + '\'' +
                ", followtime=" + followtime +
                '}';
    }

    public String getUserfollowid() {
        return userfollowid;
    }

    public void setUserfollowid(String userfollowid) {
        this.userfollowid = userfollowid == null ? null : userfollowid.trim();
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid == null ? null : userid.trim();
    }

    public String getFollowid() {
        return followid;
    }

    public void setFollowid(String followid) {
        this.followid = followid == null ? null : followid.trim();
    }

    public Date getFollowtime() {
        return followtime;
    }

    public void setFollowtime(Date followtime) {
        this.followtime = followtime;
    }
}